{extend name="public:layout" /}
{block name="title"}查看回复评价{/block}
{block name="head"}
{:widget('common/Form/icheckRes')}{:widget('common/Form/validRes')}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 评价列表</a></li>
                <li class="active">回复评价</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label">订单号</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.order_sn}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">评价商品</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.goods_name} {$info.sku_name}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">购买时间</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.buyer_time|date="Y-m-d",###}</p>
                    </div>
                    <label class="col-sm-2 control-label">评价人</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.buyer_username}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">评价时间</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.geval_time|date="Y-m-d",###}</p>
                    </div>
                    <label class="col-sm-2 control-label">商品评分</label>
                    <div class="col-sm-4">
                        <p class="form-control-static text-warning">{:str_repeat('★',$info['geval_scores'])}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">物流评分</label>
                    <div class="col-sm-4">
                        <p class="form-control-static text-warning">{:str_repeat('★',$info['shipping_scores'])}</p>
                    </div>
                    <label class="col-sm-2 control-label">服务评分</label>
                    <div class="col-sm-4">
                        <p class="form-control-static text-warning">{:str_repeat('★',$info['server_scores'])}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">评价内容</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">{$info.geval_content}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">评价晒图</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">
                            {volist name="info.geval_image" id="vo"}
                            <img src="{$vo}" style="width:90px;height:90px;" />
                            {/volist}
                        </p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">是否审核</label>

                    <div class="col-sm-10">
                        <label class="radio-inline i-checks">
                            <input type="radio" name="geval_status" value="0" {eq name="info.geval_status" value="0"}checked{/eq}> 未审核
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="geval_status" value="1" {eq name="info.geval_status" value="1"}checked{/eq}> 已审核
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">回复内容</label>
                    <div class="col-sm-10">
                        <textarea class="form-control" name="geval_remark" rows="3">{$info.geval_remark}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary"
                                onclick="ajaxSubForm();" type="submit">
                            保存内容
                        </button>
                        <a href="{:url('index',['type_id'=>$Request.param.type_id])}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
    })
</script>
{/block}